/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Utility;

import com.toedter.calendar.JCalendar;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Locale;
import javax.swing.JLabel;

/**
 *
 * @author Thiago
 */
public class DataHoraUtil {
    
    public static void setData(JLabel dataLabel){
        
        final SimpleDateFormat format = new SimpleDateFormat("dd/MM/yy");
        
        /*
        Calendar data = Calendar.getInstance(); 
        String dia, mes, ano;
        dia = Integer.toString(data.get(Calendar.DATE));
        mes = Integer.toString(data.get(Calendar.MONTH));
        ano = Integer.toString(data.get(Calendar.YEAR));
        */
        
        dataLabel.setText(format.format(new Date()));        
    }
}
    
    





        
        
        
        
        
   

